package com.ihrm.system.client;


import com.ihrm.common.entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * 声明接口，通过feign调用其他微服务
 */
//声明调用的微服务名称
@FeignClient("ihrm-employee")
public interface EmployeeFeignClient {
    /**
     * 员工个人信息删除
     */
    @RequestMapping(value = "/employees/{id}/personalInfo", method = RequestMethod.DELETE)
    public Result deletePersonalInfo(@PathVariable(name = "id") String uid);

    /**
     * 员工岗位信息删除
     */
    @RequestMapping(value = "/employees/{id}/jobs", method = RequestMethod.DELETE)
    public Result deleteJobsInfo(@PathVariable(name = "id") String uid);


}
